package com.example.pilipili.service;

import com.example.pilipili.common.R;
import com.example.pilipili.pojo.dto.APDto;
import com.example.pilipili.pojo.entity.AdminPrivileges;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pilipili.pojo.entity.Privileges;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liyv
 * @since 2023-12-01
 */
public interface AdminPrivilegesService extends IService<AdminPrivileges> {

    R add(AdminPrivileges entry) ;

    R del(AdminPrivileges entry) ;
    R<List<APDto>> getUserPrivilegesList() ;

    R<APDto> getPListByUId(Integer uid) ;

    R<List<Privileges>> getByNotInAdmin(int aid);

}
